home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / netbsd / experimental / bootblock.readme < prev    next >
Text File  |  1995-11-20  |  5KB  |  95 lines

  1. Descr: bootblock loader for NetBSD/Amiga and AmigaOS
  2. Uploader: Michael L. Hitch <osymh@gemini.oscs.montana.edu>
  3. Author: Michael L. Hitch <osymh@gemini.oscs.montana.edu>
  4.  
  5. This is a preliminary version of a bootblock loader for NetBSD/Amiga. It
  6. can be used to directly boot NetBSD/Amiga from the harddisk if the SCSI
  7. driver supports bootblock booting.
  8.  
  9. To install the bootblock, you need to transfer "bootblock.bin" to the
  10. root partition of your NetBSD disk.  This can be done on NetBSD by
  11. using the 'dd' command:
  12.  
  13.     dd if=bootblock.bin of=/dev/rsd0a
  14.  
  15. where /dev/rsd0a is replaced with the device name of your actual root
  16. partition.  The 'dcp' or '[x]streamtodev' program can be used on
  17. AmigaDOS to copy "bootblock.bin" to the NetBSD root partition.  Using
  18. the streamtodev program is the easier and safer method.
  19.  
  20.     dcp bootblock.bin sd0a:
  21.     xstreamtodev --input=bootblock.bin --rdb-name=sd0a
  22.  
  23. where sd0a is the root partition name.  To use dcp, the device must
  24. be mounted;  [x]streamtodev will use the RDB blocks directly.
  25.  
  26. Once the bootblock is copied to the root partition, you need to set up
  27. that partition for bootblock booting.  This can be done with HDToolBox
  28. by going to the "partition disk" screen, enabling the advanced mode, and
  29. setting the "custom boot" to 16 blocks.  Some SCSI drivers will require
  30. a valid filesystem to be present before the bootblock can be used.  My
  31. GVP SCSI drivers require this.  I installed the BFFSFileSystem using the
  32. DOStype of the NetBSD partition. My WarpEngine SCSI driver will using
  33. the bootblock without needing to have a valid filesystem.  The
  34. Progressive Peripherals Zeus SCSI driver won't work with the bootblock.
  35.  
  36. You should then be able to test it by using the boot menu (holding down
  37. both mouse buttons when rebooting the Amiga).  The partition should show
  38. up as a bootable device, and you should be able to select the NetBSD
  39. partition and boot from it.  After verifying that the bootblock works
  40. properly, you can change the boot priority of the root partition to make
  41. it the highest priority and boot into NetBSD by default.  [Note: the
  42. current default options are "-bsAS", so it will prompt for the root
  43. device and boot into single user mode - that's my normal boot mode for
  44. various reasons.  This will probably be changed to boot multiuser with
  45. no device prompt.  If you are handy with a file editor and can
  46. recalculate the bootblock checksum, you can change the default to suit
  47. your needs.]
  48.  
  49. The bootblock will open a screen, print the default boot command, and
  50. allow the default to be overridden. This prompt will eventually time
  51. out, but the timeout is just a counter set up for my '040 systems and
  52. may be rather long on slower machines.  [This will be changed to use the
  53. timer device to make it machine independant.]  You can enter a different
  54. kernel path (to boot an alternate kernel) or different options. You can
  55. also enter 'q', which will abort the boot.  A recoverable alert will be
  56. displayed, and allow continuing to the next bootable device.
  57.  
  58. The program 'bootbsd' is an AmigaDOS executable which is a front-end to
  59. the bootblock, and can be used to boot NetBSD using AmigaDOS.  It has
  60. several options to select the SCSI device driver, the unit number, the
  61. partition name, and the default boot command:
  62.  
  63.     bootbsd [-dPPSscsi2.device] [-u1] [-psd1a] "-c/netbsd -bsAS"
  64.  
  65. The default partition actually looks for the partition marked as the
  66. root partition.  The -p option allows specifying the name of a partition
  67. to locate the kernel.  The -c option allows changing the default parameters.
  68. This can be used to specify an alternate kernel and/or different options.
  69. For example, I can use:
  70.  
  71.     bootbsd -psd1f "-c/tmp/src/sys/arch/amiga/compile/ZEUS/netbsd -bsAS"
  72.  
  73. to boot the kernel in my kernel build directory.  Using:
  74.  
  75.     bootbsd -dgvpscsi.device -u0 "-c/netbsd -aAS"
  76.  
  77. will boot the normal kernel from the root partition on unit 0 of the
  78. disk on a GVP SCSI adapter, and will boot into multi-user mode with AGA
  79. enabled and include kernel symbols.
  80.  
  81. The following options are currently available:
  82.  
  83.     -a    Boot into multi-user mode
  84.     -b    Prompt for root device
  85.     -c n    Set machine type to n (n = 500,1200,2000,3000, or 4000)
  86.     -k    Reserve 4M of fastmem [for debugging purposes]
  87.     -m n    Set fastmem size to n*1024
  88.     -n n    Enable non-contiguous memory (n=0,1,2,3)
  89.     -p    Select fastmemory segment by priority rather than size
  90.     -s    Boot into single-user mode
  91.     -A    Enable AGA modes
  92.     -D    Enter debugger on startup (if the debugger is available)
  93.     -I n    Set synchronous negotiation inhibit flags [not used yet]
  94.     -S    Include kernel symbols [for debugging purposes]
  95.